home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / CIncludes / ROMDefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-12  |  11.4 KB  |  300 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        ROMDefs.h
  3.  
  4.      Contains:    NuBus card ROM Definitions.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1986-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __ROMDEFS__
  19. #define __ROMDEFS__
  20.  
  21.  
  22.  
  23. #if PRAGMA_ONCE
  24. #pragma once
  25. #endif
  26.  
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30.  
  31. #if PRAGMA_IMPORT
  32. #pragma import on
  33. #endif
  34.  
  35. #if PRAGMA_STRUCT_ALIGN
  36.     #pragma options align=mac68k
  37. #elif PRAGMA_STRUCT_PACKPUSH
  38.     #pragma pack(push, 2)
  39. #elif PRAGMA_STRUCT_PACK
  40.     #pragma pack(2)
  41. #endif
  42.  
  43.  
  44. enum {
  45.     appleFormat                    = 1,                            /*Format of Declaration Data (IEEE will assign real value)*/
  46.     romRevision                    = 1,                            /*Revision of Declaration Data Format*/
  47.     romRevRange                    = 9,                            /*Revision of Declaration Data Format [1..9]*/
  48.     testPattern                    = 1519594439L,                    /*FHeader long word test pattern*/
  49.     sCodeRev                    = 2,                            /*Revision of code (For sExec)*/
  50.     sExec2                        = 2,
  51.     sCPU68000                    = 1,                            /*CPU type = 68000*/
  52.     sCPU68020                    = 2,                            /*CPU type = 68020*/
  53.     sCPU68030                    = 3,                            /*CPU type = 68030*/
  54.     sCPU68040                    = 4,                            /*CPU type = 68040*/
  55.     sMacOS68000                    = 1,                            /*Mac OS, CPU type = 68000*/
  56.     sMacOS68020                    = 2,                            /*Mac OS, CPU type = 68020*/
  57.     sMacOS68030                    = 3,                            /*Mac OS, CPU type = 68030*/
  58.     sMacOS68040                    = 4,                            /*Mac OS, CPU type = 68040*/
  59.     board                        = 0,                            /*Board sResource - Required on all boards*/
  60.     displayVideoAppleTFB        = 16843009L,                    /*Video with Apple parameters for TFB card.*/
  61.     displayVideoAppleGM            = 16843010L,                    /*Video with Apple parameters for GM card.*/
  62.     networkEtherNetApple3Com    = 33620225L,                    /*Ethernet with apple parameters for 3-Comm card.*/
  63.     testSimpleAppleAny            = -2147417856L,                    /*A simple test sResource.*/
  64.     endOfList                    = 255,                            /*End of list*/
  65.     defaultTO                    = 100                            /*100 retries.*/
  66. };
  67.  
  68.  
  69.  
  70. enum {
  71.                                                                 /* sResource flags for sRsrc_Flags */
  72.     fOpenAtStart                = 1,                            /* set => open the driver at start time, else do not */
  73.     f32BitMode                    = 2                                /* set => a 32-bit address will be put into dctlDevBase (IM Devices 2-54) */
  74. };
  75.  
  76.  
  77. enum {
  78.     sRsrcType                    = 1,                            /*Type of sResource*/
  79.     sRsrcName                    = 2,                            /*Name of sResource*/
  80.     sRsrcIcon                    = 3,                            /*Icon*/
  81.     sRsrcDrvrDir                = 4,                            /*Driver directory*/
  82.     sRsrcLoadDir                = 5,                            /*Load directory*/
  83.     sRsrcBootRec                = 6,                            /*sBoot record*/
  84.     sRsrcFlags                    = 7,                            /*sResource Flags*/
  85.     sRsrcHWDevId                = 8,                            /*Hardware Device Id*/
  86.     minorBaseOS                    = 10,                            /*Offset to base of sResource in minor space.*/
  87.     minorLength                    = 11,                            /*Length of sResource’s address space in standard slot space.*/
  88.     majorBaseOS                    = 12,                            /*Offset to base of sResource in Major space.*/
  89.     majorLength                    = 13,                            /*Length of sResource in super slot space.*/
  90.     sRsrcTest                    = 14,                            /*sBlock diagnostic code*/
  91.     sRsrccicn                    = 15,                            /*Color icon*/
  92.     sRsrcicl8                    = 16,                            /*8-bit (indexed) icon*/
  93.     sRsrcicl4                    = 17,                            /*4-bit (indexed) icon*/
  94.     sDRVRDir                    = 16,                            /*sDriver directory*/
  95.     sGammaDir                    = 64,                            /*sGamma directory*/
  96.     sRsrcVidNames                = 65,                            /*Video mode name directory*/
  97.     sRsrcDock                    = 80,                            /*spID for Docking Handlers*/
  98.     sDiagRec                    = 85,                            /*spID for board diagnostics*/
  99.     sVidAuxParams                = 123,                            /*more video info for Display Manager -- timing information*/
  100.     sDebugger                    = 124,                            /*DatLstEntry for debuggers indicating video anamolies*/
  101.     sVidAttributes                = 125,                            /*video attributes data field (optional,word)*/
  102.     fLCDScreen                    = 0,                            /* bit 0 - when set is LCD, else is CRT*/
  103.     fBuiltInDisplay                = 1,                            /*      1 - when set is built-in (in the box) display, else not*/
  104.     fDefaultColor                = 2,                            /*      2 - when set display prefers multi-bit color, else gray*/
  105.     fActiveBlack                = 3,                            /*      3 - when set black on display must be written, else display is naturally black*/
  106.     fDimMinAt1                    = 4,                            /*      4 - when set should dim backlight to level 1 instead of 0*/
  107.     fBuiltInDetach                = 4,                            /*      4 - when set is built-in (in the box), but detaches*/
  108.     sVidParmDir                    = 126,
  109.     sBkltParmDir                = 140,                            /*directory of backlight tables*/
  110.     stdBkltTblSize                = 36,                            /*size of “standard” 0..31-entry backlight table*/
  111.     sSuperDir                    = 254
  112. };
  113.  
  114. /* =======================================================================    */
  115. /* sResource types                                                            */
  116. /* =======================================================================    */
  117.  
  118. enum {
  119.     catBoard                    = 0x0001,                        /*Category for board types.*/
  120.     catTest                        = 0x0002,                        /*Category for test types -- not used much.*/
  121.     catDisplay                    = 0x0003,                        /*Category for display (video) cards.*/
  122.     catNetwork                    = 0x0004,                        /*Category for Networking cards.*/
  123.     catScanner                    = 0x0008,                        /*scanners bring in data somehow*/
  124.     catCPU                        = 0x000A,
  125.     catIntBus                    = 0x000C,
  126.     catProto                    = 0x0011,
  127.     catDock                        = 0x0020,                        /*<Type>*/
  128.     typeBoard                    = 0x0000,
  129.     typeApple                    = 0x0001,
  130.     typeVideo                    = 0x0001,
  131.     typeEtherNet                = 0x0001,
  132.     typeStation                    = 0x0001,
  133.     typeDesk                    = 0x0002,
  134.     typeTravel                    = 0x0003,
  135.     typeDSP                        = 0x0004,
  136.     typeXPT                        = 0x000B,
  137.     typeSIM                        = 0x000C,
  138.     typeDebugger                = 0x0100,
  139.     type68000                    = 0x0002,
  140.     type68020                    = 0x0003,
  141.     type68030                    = 0x0004,
  142.     type68040                    = 0x0005,
  143.     type601                        = 0x0025,
  144.     type603                        = 0x002E,
  145.     typeAppleII                    = 0x0015,                        /*Driver Interface : <id.SW>*/
  146.     drSwMacCPU                    = 0,
  147.     drSwAppleIIe                = 0x0001,
  148.     drSwApple                    = 1,                            /*To ask for or define an Apple-compatible SW device.*/
  149.     drSwMacsBug                    = 0x0104,
  150.     drSwDepewEngineering        = 0x0101,                        /*Driver Interface : <id.SW><id.HW>*/
  151.     drHwTFB                        = 1,                            /*HW ID for the TFB (original Mac II) video card.*/
  152.     drHw3Com                    = 1,                            /*HW ID for the Apple EtherTalk card.*/
  153.     drHwBSC                        = 3,
  154.     drHwGemini                    = 1,
  155.     drHwDeskBar                    = 1,
  156.     drHwHooperDock                = 2,                            /*Hooper’s CatDock,TypeDesk,DrSwApple ID; registered with DTS.*/
  157.     drHwATT3210                    = 0x0001,
  158.     drHwBootBug                    = 0x0100,
  159.     drHwMicroDock                = 0x0100,                        /* video hardware id's  - <catDisplay><typVideo>*/
  160.     drHwSTB3                    = 0x0002,                        /* Assigned by Kevin Mellander for STB-3 hardware. */
  161.     drHwSTB                        = drHwSTB3,                        /* (Both STB-3 and STB-4 share the same video hardware.) */
  162.     drHwRBV                        = 0x0018,                        /* IIci Aurora25/16 hw ID */
  163.     drHwJMFB                    = 0x0019,                        /* 4•8/8•24 NuBus card */
  164.     drHwElsie                    = 0x001A,
  165.     drHwTim                        = 0x001B,
  166.     drHwDAFB                    = 0x001C,
  167.     drHwDolphin                    = 0x001D,                        /* 8•24GC NuBus card */
  168.     drHwGSC                        = 0x001E,                        /* (Renamed from GSC drHWDBLite) */
  169.     drHwDAFBPDS                    = 0x001F,
  170.     drHWVSC                        = 0x0020,
  171.     drHwApollo                    = 0x0021,
  172.     drHwSonora                    = 0x0022,
  173.     drHwReserved2                = 0x0023,
  174.     drHwColumbia                = 0x0024,
  175.     drHwCivic                    = 0x0025,
  176.     drHwBrazil                    = 0x0026,
  177.     drHWPBLCD                    = 0x0027,
  178.     drHWCSC                        = 0x0028,
  179.     drHwJET                        = 0x0029,
  180.     drHWMEMCjr                    = 0x002A,
  181.     drHwBoogie                    = 0x002B,                        /* 8•24AC nuBus video card (built by Radius) */
  182.     drHwHPV                        = 0x002C,                        /* High performance Video (HPV) PDS card for original PowerMacs */
  183.     drHwPlanaria                = 0x002D,                        /*PowerMac 6100/7100/8100 PDS AV video*/
  184.     drHwValkyrie                = 0x002E,
  185.     drHwKeystone                = 0x002F,
  186.     drHWATI                        = 0x0055,                        /* other drHW id's for built-in functions*/
  187.     drHwSonic                    = 0x0110,
  188.     drHwMace                    = 0x0114,
  189.     drHwDblExp                    = 0x0001,                        /* CPU board IDs - <catBoard> <typBoard> <0000> <0000>*/
  190.     MIIBoardId                    = 0x0010,                        /*Mac II Board ID*/
  191.     ciVidBoardID                = 0x001F,                        /*Aurora25 board ID*/
  192.     CX16VidBoardID                = 0x0020,                        /*Aurora16 board ID*/
  193.     MIIxBoardId                    = 0x0021,                        /*Mac IIx Board ID*/
  194.     SE30BoardID                    = 0x0022,                        /*Mac SE/30 Board ID*/
  195.     MIIcxBoardId                = 0x0023,                        /*Mac IIcx Board ID*/
  196.     MIIfxBoardId                = 0x0024,                        /*F19 board ID*/
  197.     EricksonBoardID                = 0x0028,
  198.     ElsieBoardID                = 0x0029,
  199.     TIMBoardID                    = 0x002A,
  200.     EclipseBoardID                = 0x002B,
  201.     SpikeBoardID                = 0x0033,
  202.     DBLiteBoardID                = 0x0035,
  203.     ZydecoBrdID                    = 0x0036,
  204.     ApolloBoardID                = 0x0038,
  205.     PDMBrdID                    = 0x0039,
  206.     VailBoardID                    = 0x003A,
  207.     WombatBrdID                    = 0x003B,
  208.     ColumbiaBrdID                = 0x003C,
  209.     CycloneBrdID                = 0x003D,
  210.     CompanionBrdID                = 0x003E,
  211.     DartanianBoardID            = 0x0040,
  212.     DartExtVidBoardID            = 0x0046,
  213.     HookBoardID                    = 0x0047,                        /*Hook internal video board ID*/
  214.     EscherBoardID                = 0x004A,                        /*Board ID for Escher (CSC)*/
  215.     POBoardID                    = 0x004D,                        /*Board ID for Primus/Optimus/Aladdin*/
  216.     TempestBrdID                = 0x0050,                        /*Non-official Board ID for Tempest*/
  217.     BlackBirdBdID                = 0x0058,                        /*Board ID for BlackBird*/
  218.     BBExtVidBdID                = 0x0059,                        /*Board ID for BlackBird built-in external video*/
  219.     YeagerBoardID                = 0x005A,                        /*Board ID for Yeager*/
  220.     BBEtherNetBdID                = 0x005E,                        /*Board ID for BlackBird Ethernet board*/
  221.     TELLBoardID                    = 0x0065,                        /*Board ID for TELL (Valkyrie)*/
  222.     MalcolmBoardID                = 0x065E,                        /*Board ID for Malcolm*/
  223.     AJBoardID                    = 0x065F,                        /*Board ID for AJ*/
  224.     M2BoardID                    = 0x0660,                        /*Board ID for M2*/
  225.     OmegaBoardID                = 0x0661,                        /*Board ID for Omega*/
  226.     TNTBoardID                    = 0x0670,                        /*Board ID for TNT/Alchemy/Hipclipper CPUs (did Nano just make this up?)*/
  227.     HooperBoardID                = 0x06CD,                        /*Board ID for Hooper*/
  228.                                                                 /* other board IDs*/
  229.     BoardIDDblExp                = 0x002F,
  230.     DAFBPDSBoardID                = 0x0037,
  231.     MonetBoardID                = 0x0048,
  232.     SacSONIC16BoardID            = 0x004E,
  233.     SacSONIC32BoardID            = 0x004F,                        /* CPU board types - <CatCPU> <Typ680x0> <DrSwMacCPU>*/
  234.     drHWMacII                    = 0x0001,                        /*Mac II hw ID*/
  235.     drHwMacIIx                    = 0x0002,                        /*Mac IIx hw ID*/
  236.     drHWSE30                    = 0x0003,                        /*Mac SE/30 hw ID*/
  237.     drHwMacIIcx                    = 0x0004,                        /*Mac IIcx hw ID*/
  238.     drHWMacIIfx                    = 0x0005,                        /*Mac IIfx hw ID*/
  239.     drHWF19                        = 0x0005,                        /*F19 hw ID*/
  240.     sBlockTransferInfo            = 20,                            /*general slot block xfer info*/
  241.     sMaxLockedTransferCount        = 21,                            /*slot max. locked xfer count*/
  242.     boardId                        = 32,                            /*Board Id*/
  243.     pRAMInitData                = 33,                            /*sPRAM init data*/
  244.     primaryInit                    = 34,                            /*Primary init record*/
  245.     timeOutConst                = 35,                            /*Time out constant*/
  246.     vendorInfo                    = 36,                            /*Vendor information List. See Vendor List, below*/
  247.     boardFlags                    = 37,                            /*Board Flags*/
  248.     secondaryInit                = 38,                            /*Secondary init record/code*/
  249.                                                                 /* The following Id's are associated with all CPU sResources.*/
  250.     MajRAMSp                    = 129,                            /*ID of Major RAM space.*/
  251.     MinROMSp                    = 130,                            /*ID of Minor ROM space.*/
  252.     vendorId                    = 1,                            /*Vendor Id*/
  253.     serialNum                    = 2,                            /*Serial number*/
  254.     revLevel                    = 3,                            /*Revision level*/
  255.     partNum                        = 4,                            /*Part number*/
  256.     date                        = 5                                /*Last revision date of the card*/
  257. };
  258.  
  259.  
  260. enum {
  261.     testByte                    = 32,                            /*Test byte.*/
  262.     testWord                    = 33,                            /*0021*/
  263.     testLong                    = 34,                            /*Test Long.*/
  264.     testString                    = 35                            /*Test String.*/
  265. };
  266.  
  267. /* sResource List. Category: Display        Type: Video */
  268. /* The following Id's are common to all Mode sResources in Display_Video */
  269. /* functional sResources. */
  270.  
  271. enum {
  272.     mBlockTransferInfo            = 5,                            /* slot block xfer info PER MODE */
  273.     mMaxLockedTransferCount        = 6                                /* slot max. locked xfer count PER MODE */
  274. };
  275.  
  276.  
  277.  
  278.  
  279.  
  280. #if PRAGMA_STRUCT_ALIGN
  281.     #pragma options align=reset
  282. #elif PRAGMA_STRUCT_PACKPUSH
  283.     #pragma pack(pop)
  284. #elif PRAGMA_STRUCT_PACK
  285.     #pragma pack()
  286. #endif
  287.  
  288. #ifdef PRAGMA_IMPORT_OFF
  289. #pragma import off
  290. #elif PRAGMA_IMPORT
  291. #pragma import reset
  292. #endif
  293.  
  294. #ifdef __cplusplus
  295. }
  296. #endif
  297.  
  298. #endif /* __ROMDEFS__ */
  299.  
  300.